//
//  ViewController.m
//  CarProjectTest
//
//  Created by lanou on 15/10/24.
//  Copyright © 2015年 完美的宇gogo. All rights reserved.
//

#import "ViewController.h"
#import "TestTableViewController.h"


@interface ViewController ()

@property (nonatomic, strong) UIButton *button;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    self.view.backgroundColor = [UIColor blueColor];
    
    _button = [UIButton buttonWithType:(UIButtonTypeCustom)];
    _button.frame = CGRectMake(100, 100, 100, 30);
    [_button addTarget:self action:@selector(clickButton:) forControlEvents:(UIControlEventTouchUpInside)];
    [_button setTitle:@"测试" forState:(UIControlStateNormal)];
    [_button setTitleColor:[UIColor blackColor] forState:(UIControlStateNormal)];
    [self.view addSubview:_button];
    
    
    
}

- (void)clickButton:(UIButton *)button
{
    NSLog(@"测试");
    TestTableViewController *testVC = [[TestTableViewController alloc]initWithStyle:(UITableViewStylePlain)];
    [self presentViewController:testVC animated:YES completion:nil];
}





- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
